package com.main.ssm_aop_xml.springXml;

import org.springframework.stereotype.Component;

//@Component("b")
public class Duck implements Animal{

	@Override
	public String fly(String flag) {
	 flag = "false";
		return flag;
	}

	@Override
	public String eat(String flag) {
	    flag = "true";
		return flag;
	}

	@Override
	public String swim(String flag) {
		flag = "true";
		return flag;
	}

}
